#!/bin/bash
SSHHOST=$1
DESTFILE=$2
ssh $SSHHOST "if [ ! -f $DESTFILE ]; then echo 0;else echo 1; fi"
